package com.observable.test2;

/**
 * Created with IntelliJ IDEA.
 * Description:
 *
 * @author lzy
 * @create 2020-09-15 22:02
 */
public class MouseEventCallback {
    public void onClick(Event e) {
        System.out.println("============触发鼠标单击事件=============" + "\n" + e);
    }

    public void onDoubleClick(Event e) {
        System.out.println("============触发鼠标双击事件=============" + "\n" + e);
    }

    public void onUp(Event e) {
        System.out.println("===========触发鼠标弹起事件=============" + "\n" + e);
    }

    public void onDown(Event e) {
        System.out.println("===========触发鼠标按下事件=============" + "\n" + e);
    }

    public void onMove(Event e) {
        System.out.println("===========触发鼠标移动事件==============" + "\n" + e);
    }

    public void onWheel(Event e) {
        System.out.println("===========触发鼠标滚动事件==============" + "\n" + e);
    }

    public void onOver(Event e) {
        System.out.println("===========触发鼠标悬停事件==============" + "\n" + e);
    }

    public void onBlur(Event e) {
        System.out.println("===========触发鼠标失去焦点事件============" + "\n" + e);
    }

    public void onFocus(Event event) {
        System.out.println("===========触发鼠标获取焦点事件============" + "\n" + event);
    }
}
